package utils;


import java.io.Serializable;


public class SessionVariable implements Serializable {

    // parameters
    public static final String ACTION = "action_parameter";
    public static final String DO_LOGIN = "do_login";
    public static final String DO_LOGOUT = "do_logout";
    public static final String DO_RESET = "do_reset";
    public static final String CHANGE = "do_change";
    public static final String ADD_USER = "do_add_user";
    public static final String EDIT_USER = "do_edit_user";
    public static final String DELETE_USER = "do_delete_user";
    // Login form attribute
    public static final String USERNAME = "username";
    public static final String PIN = "pin";
    public static final String USER_NAME = "name";
    public static final String USER_ADDRESS = "address"; 
    
    public static final String TRANSCATION = "transaction";
    public static final String BANK = "bank";
    // Session Attribute
    public static final String LOGGED_IN_USER = "current_user";
    public static final String ERROR_CODE = "error_code";
    public static final String IS_ACCOUNT_ACTIVE = "is_logged_in";
    public static final String USER_TOTAL_QUOTA = "user_total_quota";
    public static final String LAST_PURCHASE = "last_purchase";
    public static final String NEW_PIN = "new_pin";
    
    // Error codes
    public static final Integer OK = 0;
    public static final Integer PAGE_NOT_FOUND = 1;
    public static final Integer RESTRICTED_ACCESS = 2;
    public static final Integer UNCOMPLETED_FORM = 3;
    public static final Integer INVALID_FORM = 4;
    public static final Integer DATABASE_SERVER_ERROR = 5;
    public static final Integer SERVER_ERROR = 6;
    public static final Integer LOGIN_FAILED = 7;
    public static final Integer LOGIN_SUCCESS = 8;
    
    
    
    
    
}
